package com.sk.cardeal.adapter;

import android.support.annotation.Nullable;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.sk.cardeal.R;
import com.sk.cardeal.entity.OutListBean;

import java.util.List;

/**
 * Created by sk on 2018/3/15.
 */

public class OutListAdapter extends BaseQuickAdapter<OutListBean.ResultListBean,BaseViewHolder> {

    public OutListAdapter(int layoutResId, @Nullable List<OutListBean.ResultListBean> data) {
        super(layoutResId, data);
    }

    @Override
    protected void convert(BaseViewHolder helper, OutListBean.ResultListBean item) {
          helper.setText(R.id.tv_car_num,item.getCarNumber())
                  .setText(R.id.order_num,"工单号："+item.getCode());
    }
}
